/**
 * 
 */
package com.ideeli.webextractor.exe;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;

import com.ideeli.webextractor.context.WebExatractorContext;
import com.ideeli.webextractor.service.ProductService;

/**
 * @author spaida
 *
 */
public class DeleteUnlistedProducts {
	
	private static final Logger logger = Logger.getLogger(DeleteUnlistedProducts.class);

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		ApplicationContext context =WebExatractorContext.getApplicationContext();
		logger.info("Context initialized...");
		
		ProductService productService=context.getBean("productservice",ProductService.class);
		try
		{
			productService.deleteUnlisted(1);
		}
		catch (Exception e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
